<!DOCTYPE HTML>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<meta charset="utf-8">
<head th:include="include :: header"></head>
<body class="gray-bg">
    <div class="container-div">
		<div class="col-sm-12 search-collapse">
			<form id="type-form">
				<div class="select-list">
					<ul>
						<li>
							用户ID号：<input type="text" name="memberId"/>
						</li>
						<li class="select-time">
							<label>充值时间： </label>
							<input type="text" class="time-input" id="startTime" placeholder="开始时间" name="params[beginTime]"/>
							<span>-</span>
							<input type="text" class="time-input" id="endTime" placeholder="结束时间" name="params[endTime]"/>
						</li>
						<li>
							<a class="btn btn-primary btn-rounded btn-sm" onclick="$.table.search()"><i class="fa fa-search"></i>&nbsp;搜索</a>
							<a class="btn btn-warning btn-rounded btn-sm" onclick="$.form.reset()"><i class="fa fa-refresh"></i>&nbsp;重置</a>
						</li>
					</ul>
				</div>
			</form>
		</div>
		<div class="btn-group-sm hidden-xs" id="toolbar" role="group">
			<!--隐藏添加按钮-->
			<!--<a class="btn btn-success" onclick="$.operate.add()" shiro:hasPermission="sj:payRank:add">-->
				<!--<i class="fa fa-plus"></i> 添加-->
			<!--</a>-->
			<!--<a class="btn btn-primary btn-edit disabled" onclick="$.operate.edit()" shiro:hasPermission="sj:payRank:edit">
	            <i class="fa fa-edit"></i> 修改
	        </a>
			<a class="btn btn-danger btn-del btn-del disabled" onclick="$.operate.removeAll()" shiro:hasPermission="sj:payRank:remove">
				<i class="fa fa-remove"></i> 删除
			</a>-->
		</div>
			
		<div class="col-sm-12 select-table table-striped">
			<table id="bootstrap-table" data-mobile-responsive="true"></table>
		</div>
    </div>
    <div th:include="include :: footer"></div>
    <script th:inline="javascript">
        var editFlag = [[${@permission.hasPermi('sj:payRank:edit')}]];
        var removeFlag = [[${@permission.hasPermi('sj:payRank:remove')}]];
        var datas = [[${@dict.getType('pay_rank_type')}]];
        var datas1 = [[${@dict.getType('pay_rank_status')}]];
        var prefix = ctx + "sj/payRank";

        $(function() {
            var options = {
                url: prefix + "/list",
                createUrl: prefix + "/add",
                updateUrl: prefix + "/edit/{id}",
                removeUrl: prefix + "/remove",
                modalName: "充值记录",
                search: false,
                columns: [{
		            checkbox: true
		        },
				{
					field : 'id', 
					title : '序号',
                    formatter:function(value, row , index){
                        return index+1;
                    }
				},
				{
					field : 'bankCardNum', 
					title : '银行卡号' 
				},
				{
					field : 'payMoney', 
					title : '充值金额' 
				},
				{
					field : 'memberId', 
					title : '用户ID号'
				},
				{
					field : 'createDate', 
					title : '充值时间' 
				},
                    {
                        field : 'accountTime',
                        title : '到账时间'
                    },
				{
					field : 'type', 
					title : '充值类型',
					/*formatter:function (value, row, index) {
						return{
						    1:"银行卡充值",
							2:"其他"
						}[value]
                    }*/
                    formatter: function(value, row, index) {
                        return $.table.selectDictLabel(datas, value);
                    }
				},
				{
					field : 'status', 
					title : '充值状态',
					/*formatter:function (value, row, index) {
						return{
						    1:"成功",
							2:"失败"
						}[value]
                    }*/
                    formatter: function(value, row, index) {
                        return $.table.selectDictLabel(datas1, value);
                    }
				},
		        /*{
		            title: '操作',
		            align: 'center',
		            formatter: function(value, row, index) {
		            	var actions = [];
		            	//actions.push('<a class="btn btn-success btn-xs ' + editFlag + '" href="#" onclick="$.operate.edit(\'' + row.id + '\')"><i class="fa fa-edit"></i>编辑</a> ');
                        //actions.push('<a class="btn btn-danger btn-xs ' + removeFlag + '" href="#" onclick="$.operate.remove(\'' + row.id + '\')"><i class="fa fa-remove"></i>删除</a>');
						return actions.join('');
		            }
		        }*/
			]
            };
            $.table.init(options);
        });
    </script>
</body>
</html>